package com.lzw.service.impl.student;

import com.lzw.mapper.student.LRM;
import com.lzw.pojo.LeaveRecord;
import com.lzw.service.student.LRS;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LRSI implements LRS {

    @Autowired
    private LRM lrm;

    @Override
    public List<LeaveRecord> getLeaveRecordsByStudent(String student) {
        return lrm.getLeaveRecordsByStudent(student);
    }


    @Override
    public void add(LeaveRecord leaveRecord) {
        lrm.add(leaveRecord);
    }
}
